from re import search
from rest_framework import serializers
from rest_framework.serializers import ModelSerializer
from .models import Teachers

class TeacherSerial(ModelSerializer):
    teachers = serializers.ReadOnlyField(source="teachers.name")
    class Meta:
        model = Teachers
        fields = "__all__"